#include"stack.h"

void STTest01()
{
	Stack* ps = (Stack*)malloc(sizeof(Stack));
	StackInit(ps);
	int size = StackEmpty(ps);
	printf("%d\n", size);
	StackPush(ps, 1);
	StackPush(ps, 2);
	StackPush(ps, 3);
	StackPush(ps, 4);
	StackPush(ps, 5);

	StackPrint(ps);

	size = StackEmpty(ps);
	printf("%d\n", size);
	StackPop(ps);
	StackPrint(ps);
	
	STDataType ret = StackTop(ps);
	printf("%d\n", ret);
	//StackDestroy(ps);
}
int main()
{
	STTest01();
	return 0;
}